<?php

$access_token = "cYNelh0f-1KNUiKG6YcVIksgt1La39x9qRH3AJOdkhbQcjq0esprfRSWNWWIa1Aicw9rB-60aTdfWavj3YR2c4QRmerepzh_yRNU7hYqyf-n4wiqMij2O0jf_n1UDUaoIYVbAJAQGD";

$url = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=$access_token";
$result = https_request($url);
print_r($result);

function https_request($url, $data = null)
{    
	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $url);
	curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
	curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);
	if (!empty($data)){
		curl_setopt($curl, CURLOPT_POST, 1);
		curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
	}
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
	$output = curl_exec($curl);
	curl_close($curl);
	return $output;
}
?>